package operation;

import book.Book;
import book.BookList;

import java.util.Scanner;

public class DelOperation implements IOPeration {
    @Override
    public void work(BookList bookList) {
        System.out.println("删除图书");

        System.out.println("输入你想要删除的图书名：");
        Scanner sc = new Scanner(System.in);
        String bookName = sc.nextLine();

        int number = bookList.getUsedSize();
        for (int i = 0; i < number; i++) {
            Book book = bookList.getBook(i);
            if (book.getName().equals(bookName)) {

            }
        }
    }
}
